package com.example.oracle.service.serviceImpl;

import com.example.oracle.mapper.UserMapper;
import com.example.oracle.pojo.User;
import com.example.oracle.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Siaze
 * @date 2021/11/8
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> getUsers(User user) {
        return userMapper.getUsers(user);
    }

    @Override
    public int inertUser(User user) {
        return userMapper.inertUser(user);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }

    @Override
    public int disableUser(Long userId, int used) {
        return userMapper.disableUser(userId, used);
    }

    @Override
    public int deleteUser(User user) {
        return userMapper.deleteUser(user);
    }


}
